package com.spring.boot.service.impl;

import com.spring.boot.dao.EmpDao;
import com.spring.boot.service.IEmpService;
import daoother.EmpDaoOther;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

//@Component
@Service
public class EmpService implements IEmpService {
    @Autowired
    EmpDao empDao;
    @Autowired
    EmpDaoOther empDaoOther;

    /**
     * 访问EmpService层
     */
    @Override
    public void makeAccessEmpService() {
        empDao.makeAccessDao();
        empDaoOther.makeAccessDaoOther();
        System.out.println("EmpService.makeAccessEmpService");
    }
}
